package com.aiyige.model.request;

import com.aiyige.base.api.ApiManager;

import okhttp3.ResponseBody;
import retrofit2.Call;

/**
 * Created by zhuyakun on 2017/12/14.
 */

public class UseTagRequest {
    Long tagId;

    private UseTagRequest(Builder builder) {
        setTagId(builder.tagId);
    }

    public static Builder newBuilder() {
        return new Builder();
    }

    public Long getTagId() {
        return tagId;
    }

    public void setTagId(Long tagId) {
        this.tagId = tagId;
    }

    public static final class Builder {
        private Long tagId;

        private Builder() {
        }

        public Builder tagId(Long tagId) {
            this.tagId = tagId;
            return this;
        }

        public Call<ResponseBody> build() {
            return ApiManager.getService().useTag(new UseTagRequest(this));
        }
    }
}
